$url = "http://*:8090/StreamInsight"
$user = [System.Environment]::UserDomainName + "\" + [System.Environment]::UserName

"Deleting URL reservation for $url"
Invoke-Expression "netsh http delete urlacl url=$url"

"Adding URL reservation for $url"
Invoke-Expression "netsh http add urlacl url=$url user=$user"